#!/usr/bin/python
#-*- coding=utf-8 -*-


def isAString(obj):
    """
    check if an obj is a string
    """
    return isinstance(obj, basestring)




if __name__ == "__main__":
    a = "abc"
    print isAString(a)
    b = 3
    print isAString(b)